diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-20 17:07:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-20 17:08:49 +0000 |
| commit | fc115476216f364d947804cce2202b428d8afd6f (patch) | |
| tree | aa106a2639d127486d90cc40170bae3a7b30a221 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | c4b8cef3e2cc580f9f74dfdfb061d8d6dd49ca0f (diff) | |
Rename PatioCodeGen to ShidToPatio
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 0 insertions, 93 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected deleted file mode 100644 index 040ae764..00000000 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ /dev/null @@ -1,93 +0,0 @@ -Compilation unit elements: - -( - function-decl - "shed__runtime__effects_get_handler" - params=() - return-type=data-ptr -) -( - function-decl - "shed__runtime__effects_set_handler" - params=((param "effectHandler" data-ptr)) - return-type=void -) -( - function-decl - "shed__runtime__gc_get_root_stack_index" - params=() - return-type=int -) -( - function-decl - "shed__runtime__gc_set_root_stack_index" - params=((param "gc_root_stack_index" int)) - return-type=void -) -( - function-decl - "shed__runtime__gc_push_root" - params=((param "gc_root" int)) - return-type=void -) -( - function-decl - "shed__runtime__gc_collect" - params=() - return-type=void -) -( - function - "shed__effectHandlerMethod__f__0" - visibility=private - locals=((param "closurePointer__0" data-ptr) (val "gcRootStackIndex__0" int) (val "effectHandler__0" data-ptr) (val "effectHandler__1" data-ptr) (val "tmp__0" int)) - return-type=int - body=( - (call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ()) - (call (local "effectHandler__0") "shed__runtime__effects_get_handler" ()) - ( - memory-load - (local "effectHandler__1") - pointer=(local "closurePointer__0") - layout=(struct ((struct (data-ptr int int int)) (struct (function-ptr (struct (data-ptr)) (struct ()))))) - offset=(1 1 0) - ) - (call _ "shed__runtime__effects_set_handler" ((local "effectHandler__1"))) - (local-store (local "tmp__0") (int 0)) - (call _ "shed__runtime__gc_set_root_stack_index" ((local "gcRootStackIndex__0"))) - (call _ "shed__runtime__gc_push_root" ((local "tmp__0"))) - (call _ "shed__runtime__gc_collect" ()) - (call _ "shed__runtime__effects_set_handler" ((local "effectHandler__0"))) - (resume (local "tmp__0")) - ) -) - -Locals: - * (val "closure__f__0" int) - * (val "closurePointer__f__0" data-ptr) - * (val "effectHandlerCurrent__0" data-ptr) - -Instructions: - -( - (alloc-heap (local "closurePointer__f__0") (struct ((struct (data-ptr int int int)) (struct (function-ptr (struct (data-ptr)) (struct ())))))) - ( - memory-store - pointer=(local "closurePointer__f__0") - layout=(struct ((struct (data-ptr int int int)) (struct (function-ptr (struct (data-ptr)) (struct ()))))) - offset=(1 0) - value=(function-ptr "shed__effectHandlerMethod__f__0") - ) - (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ()) - ( - memory-store - pointer=(local "closurePointer__f__0") - layout=(struct ((struct (data-ptr int int int)) (struct (function-ptr (struct (data-ptr)) (struct ()))))) - offset=(1 1 0) - value=(local "effectHandlerCurrent__0") - ) - (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) -) - -Temporary stack: - * PatioLocalRef[name=closure__f__0] |
